package main.pojo;

/**
 * 作者: ALIM-MASTIK
 * 创建实现: 2023/7/14 20:34
 * 项目名称：chat
 * 软件: IntelliJ IDEA
 */

import java.util.Date;

public class ChatMessage {
    private int messageID;       // 消息ID
    private int senderID;        // 发送者ID
    private int receiverID;      // 接收者ID
    private int chatRoomID;      // 聊天室ID
    private String messageType;  // 消息类型
    private String messageContent;  // 消息内容
    private Date sendTime;       // 发送时间
    private byte[] photo;

    public int getMessageID() {
        return messageID;
    }

    public void setMessageID(int messageID) {
        this.messageID = messageID;
    }

    public int getSenderID() {
        return senderID;
    }

    public void setSenderID(int senderID) {
        this.senderID = senderID;
    }

    public int getReceiverID() {
        return receiverID;
    }

    public void setReceiverID(int receiverID) {
        this.receiverID = receiverID;
    }

    public int getChatRoomID() {
        return chatRoomID;
    }

    public void setChatRoomID(int chatRoomID) {
        this.chatRoomID = chatRoomID;
    }

    public String getMessageType() {
        return messageType;
    }

    public void setMessageType(String messageType) {
        this.messageType = messageType;
    }

    public String getMessageContent() {
        return messageContent;
    }

    public void setMessageContent(String messageContent) {
        this.messageContent = messageContent;
    }

    public Date getSendTime() {
        return sendTime;
    }

    public void setSendTime(Date sendTime) {
        this.sendTime = sendTime;
    }

    public byte[] getPhoto() {
        return photo;
    }

    public void setPhoto(byte[] photo) {
        this.photo = photo;
    }

     // 照片（二进制文件）

    // 构造函数、Getters 和 Setters 方法
}
